#!/bin/bash

# 0. in gnome
display 2560x1440
sudo pacman-mirrors -m rank -c China
sudo pacman -Syy vim
sudo -E vim /etc/pamac.conf
# [archlinuxcn]
# Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch
sudo -E vim /etc/sudoers
# append $USER ALL=(ALL) NOPASSWD: ALL

# 1. crepo
git clone https://gitee.com/karl1864/crepo ~/.config/crepo
sudo ln -sf ~/.config/crepo/crepo /usr/bin/crepo
sudo pacman -S nodejs npm
cd ~/.config/crepo
npm install

mkdir ~/repo
git clone https://gitee.com/karl1864/private_data ~/repo/private_data
cd ~/repo/private_data/ssh
chmod 0600 *
rm -rf ~/.ssh/config
ln -s ~/repo/private_data/ssh/sshconfig ~/.ssh/config

crepo init
sudo crepo init

# reload zsh
zsh

sudo pacman -S i3 alacritty
# set display name at i3/config
# set display xrandr setup
# set i3 setup.sh

sudo pacman -S neovim go make
sudo pacman -S python-pip
pip3 install neovim
# vim plug: PlugInstall

sudo pacman -S tig chromium lazygit fcitx fcitx-rime variety feh picom
# Win+Shift+R: Refresh

sudo timedatectl set-ntp true
